<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="../Public/css/basic.css" />
<link type="text/css" rel="stylesheet" href="../Public/css/manage.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="../Public/js/press.js"></script>
<script type="text/javascript" src="__ROOT__/Public/ckeditor/ckeditor.js"></script>
<title></title>
</head>
<body id="main">
    <h2>新闻内容-- 修改新闻内容<a href="../../"><span class="add">→</span>返回新闻内容列表</a></h2>
    <div id="list">
     <form method="post" class="update" name="add">
        <dl>
            <dd style="width:600px;">新 闻 标 题：<input type="text" name="title" class="text" style="width:300px;" value="{$press.title}"/>　<span class="require">*</span> <span class="title info">新闻名称必须是10~100位</span><span class="title success">可用</span><span class="title error"></span></dd>
            <dd>新 闻 栏 目：<select name="nav">
                           <volist name="allnav" id="value">
                                <if condition="$value['id'] eq $press['nav']">
                                    <option value="{$value.id}" selected="selected">{$value.name}</option>
                                <else />
                                    <option value="{$value.id}">{$value.name}</option>
                                </if>
                           </volist>
                       </select>　<span class="require">*</span> <span class="nav info">选择一个新闻栏目</span><span class="pass success">可用</span><span class="pass error"></span> </dd>
            <dd>新 闻 属 性：
                <input type="checkbox" name="attr[]" value="头条" <if condition="mb_strpos($press['attr'],'头条',0,'utf-8') !== false">checked="checked"</if> />头条 
                <input type="checkbox" name="attr[]" value="置顶" <if condition="mb_strpos($press['attr'],'置顶',0,'utf-8') !== false">checked="checked"</if>/>置顶　
                <input type="checkbox" name="attr[]" value="推荐" <if condition="mb_strpos($press['attr'],'推荐',0,'utf-8') !== false">checked="checked"</if>/>推荐  
            </dd>
            <dd>新闻缩略图：<input type="text" name="thumbnail" class="text" readonly="readonly" value="{$press.thumbnail}"/> <input type="button" value="上传" onclick="window.open('__APP__/Public/upload', 'pic', 'width=400,height=150,top=200,left=420');"/></dd>   
            <dd>文 章 来 源：<input type="text" name="from" class="text" value="{$press.from}"/></dd>  
            <dd>责 任 编 辑：<input type="text" name="writer" class="text" value="{$press.writer}"/></dd>  
            <dd class="t"><span class="middle">新 闻 摘 要：</span><textarea name="summary">{$press.summary}</textarea></dd>  
            <dd style="width:800px;">
               <textarea id="TextArea1" name="content" class="ckeditor">{$press.content}</textarea>
            </dd>
            <dd>评 论 次 数：<input type="text" name="view_count" class="small" value="{$press.view_count}"/></dd>
            <if condition="$press['is_commend'] eq 1">   
                <dd>评论选项：<input type="radio" name="is_commend" value="1" checked="checked" />允许评论 <input type="radio" name="is_commend" value="0"/>禁止评论</dd>  
            <else />
                <dd>评论选项：<input type="radio" name="is_commend" value="1" />允许评论 <input type="radio" name="is_commend" value="0"  checked="checked"/>禁止评论</dd>  
            </if>
            <input type="hidden" id="flag" value="true"/> 
            <input type="hidden" name="id" value="{$press.id}"/>                     
            <dd><input type="submit" name="send" value="提交"/> <input type="button" value="返回" onclick="history.back();"/></dd>
        </dl>
    </form>
    </div>
</body>
</html>